package com.example.entity;

import com.example.entity.parent.Parent;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.*;

@Data
@Entity
@Table(name = "topic")
@ApiModel
public class Topic extends Parent {

    @Column(name = "name", length = 255)
    @ApiModelProperty("主题名")
    private String name;

    @Column(name = "count")
    @ApiModelProperty("句子总数")
    private int count;

    @Transient
    @ApiModelProperty("是否被收藏")
    private boolean isCollection;

}
